package com.ruoyi.voit.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 充电订单记录对象 charging_order
 * 
 * @author ruoyi
 * @date 2025-07-17
 */
public class ChargingOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单唯一标识 */
    private String orderId;

    /** 关联用户ID */
    @Excel(name = "关联用户ID")
    private String userId;

    /** 关联充电桩ID */
    @Excel(name = "关联充电桩ID")
    private String pileId;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String status;

    /** 充电开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "充电开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 充电结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "充电结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 订单金额（单位：元） */
    @Excel(name = "订单金额", readConverterExp = "单=位：元")
    private BigDecimal fee;

    /** 订单创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }

    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }

    public void setPileId(String pileId) 
    {
        this.pileId = pileId;
    }

    public String getPileId() 
    {
        return pileId;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setFee(BigDecimal fee) 
    {
        this.fee = fee;
    }

    public BigDecimal getFee() 
    {
        return fee;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("userId", getUserId())
            .append("pileId", getPileId())
            .append("status", getStatus())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("fee", getFee())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
